from django.shortcuts import render

from rest_framework.response import Response
from rest_framework.views import APIView


class LoginView(APIView):
    authentication_classes = []
    def get(self,request):
        print(request.user,request.auth)
        return Response({"msg":"loginget请求"})
    def post(self,request):
        return Response({"msg":"post请求"})


class UserView(APIView):
    def get(self,request):
        print(request.user, request.auth)
        return Response({"msg":"get请求"})

class OrderView(APIView):
    def get(self,request):
        return Response({"msg":"get请求"})